package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 订单优惠详情表
 * </p>
 *
 * @author hpiggy
 * @since 2023-12-19
 */
@TableName("order_dis_detail")
@ApiModel(value = "OrderDisDetail对象", description = "订单优惠详情表")
@Data
public class OrderDisDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long orderId;

    private Long disPriceId;

    private Integer disReasonId;

    private String disReasonName;

    @ApiModelProperty("直系亲属优惠时，亲属姓名")
    private String clanName;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
